package com.xnfh.framework.bean

import com.google.gson.annotations.SerializedName

/**
 * @Description:
 * @author ziheng
 * @date 2022/12/5 17:29
 */
class BaseResp<T> {
    var statusCode: Int = -1
    var retCode: Int = -1 //天气接口
    var data: T? = null
    var status: Int = -1
    var message: String = ""
    var result: T? = null
    @SerializedName("Data")
    var SfjData: T? = null//水肥机设备使用的（第三方接口）
    var MessageId: Int = -1//水肥机判断是否成功（1成功）
    var responseState: ResponseState? = null
    enum class ResponseState {
        REQUEST_START,
        REQUEST_SUCCESS,
        REQUEST_FAILED,
        REQUEST_ERROR,
        REQUEST_LOGOUT
    }
}